package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierDao {

    List<Supplier> selectSupplierPage(@Param("page") Integer page, @Param("rows") Integer rows, @Param("supplierName") String supplierName);

    void insertSupplier(@Param("supplier") Supplier supplier);

    void updateSupplier(@Param("supplier") Supplier supplier, @Param("supplierId") Integer supplierId);

    int deleteSupplierBachByIds(@Param("arr") String[] arr);
}
